#! /bin/bash
#输出到以日期格式文件名
loga=a`date +'%Y-%m-%d'`.txt
logb=b`date +'%Y-%m-%d'`.txt
logc=c`date +'%Y-%m-%d'`.txt
echo -e $(date) "\nHello World !" >> $loga

ab=`/opt/chia-plotter/build/chia_plot \
-n -1 \
-r 10 \
-u 128 \
-t /ssd1/Plotter/ \
-d /a/Plots/ \
-p a90641f97fac3bfc53a30c5508e02a3c3b2d70d8c4d184e9b15010079ce9d0403223197b3aa663020724de8c30c10dce \
-f 86f2911fb7d2bf12b3d2d3b9645b6eeff0b8f94c7c29b5aefb0993136a3c2968b06c681b8943447384d2e0d9cf037dd2 >> $loga`
ac=`/opt/chia-plotter/build/chia_plot \
-n -1 \
-r 10 \
-u 128 \
-t /ssd2/Plotter/ \
-d /b/Plots/ \
-p a90641f97fac3bfc53a30c5508e02a3c3b2d70d8c4d184e9b15010079ce9d0403223197b3aa663020724de8c30c10dce \
-f 86f2911fb7d2bf12b3d2d3b9645b6eeff0b8f94c7c29b5aefb0993136a3c2968b06c681b8943447384d2e0d9cf037dd2 >> $logb`
ad=`/opt/chia-plotter/build/chia_plot \
-n -1 \
-r 10 \
-u 128 \
-t /ssd3/Plotter/ \
-d /c/Plots/ \
-p a90641f97fac3bfc53a30c5508e02a3c3b2d70d8c4d184e9b15010079ce9d0403223197b3aa663020724de8c30c10dce \
-f 86f2911fb7d2bf12b3d2d3b9645b6eeff0b8f94c7c29b5aefb0993136a3c2968b06c681b8943447384d2e0d9cf037dd2 >> $logc`
if [$ab -eq 0];then
      sleep 60
      $ac
      sleep 70
      $ad
    else
      echo "ab weizhixing"
fi


